package com.hrp.analyzer.core.model;

import com.hrp.analyzer.core.rule.CommonRule;
import com.hrp.analyzer.model.Verifiable;
import com.hrp.analyzer.request.RequestParams;

import java.io.Serializable;


/**
 * 小说信息规则
 *
 * @author hrp
 * @date 2021/2/6 22:03
 */

public class DetailRule implements Serializable, Verifiable {
    private static final long serialVersionUID = 6939110987532593242L;
    /**
     * 请求参数
     */
    private RequestParams params;
    /**
     * 小说目录地址
     */
    private CommonRule url;
    /**
     * 书名
     */
    private CommonRule title;
    /**
     * 作者
     */
    private CommonRule author;
    /**
     * 播音
     */
    private CommonRule broadcast;
    /**
     * 分类
     */
    private CommonRule category;
    /**
     * 字数
     */
    private CommonRule wordCount;
    /**
     * 简介
     */
    private CommonRule introduce;
    /**
     * 最新章节名称
     */
    private CommonRule latestChapterName;
    /**
     * 最新章节链接
     */
    private CommonRule latestChapterUrl;
    /**
     * 封面
     */
    private CommonRule coverUrl;
    /**
     * 状态 已完结/连载中
     */
    private CommonRule state;
    /**
     * 最近更新时间
     */
    private CommonRule updateTime;

    @Override
    public boolean isEffective() {
        return true;
    }


    public RequestParams getParams() {
        return params;
    }

    public void setParams(RequestParams params) {
        this.params = params;
    }

    public CommonRule getUrl() {
        return url;
    }

    public void setUrl(CommonRule url) {
        this.url = url;
    }

    public CommonRule getTitle() {
        return title;
    }

    public void setTitle(CommonRule title) {
        this.title = title;
    }

    public CommonRule getAuthor() {
        return author;
    }

    public void setAuthor(CommonRule author) {
        this.author = author;
    }

    public CommonRule getBroadcast() {
        return broadcast;
    }

    public void setBroadcast(CommonRule broadcast) {
        this.broadcast = broadcast;
    }

    public CommonRule getCategory() {
        return category;
    }

    public void setCategory(CommonRule category) {
        this.category = category;
    }

    public CommonRule getWordCount() {
        return wordCount;
    }

    public void setWordCount(CommonRule wordCount) {
        this.wordCount = wordCount;
    }

    public CommonRule getIntroduce() {
        return introduce;
    }

    public void setIntroduce(CommonRule introduce) {
        this.introduce = introduce;
    }

    public CommonRule getLatestChapterName() {
        return latestChapterName;
    }

    public void setLatestChapterName(CommonRule latestChapterName) {
        this.latestChapterName = latestChapterName;
    }

    public CommonRule getLatestChapterUrl() {
        return latestChapterUrl;
    }

    public void setLatestChapterUrl(CommonRule latestChapterUrl) {
        this.latestChapterUrl = latestChapterUrl;
    }

    public CommonRule getCoverUrl() {
        return coverUrl;
    }

    public void setCoverUrl(CommonRule coverUrl) {
        this.coverUrl = coverUrl;
    }

    public CommonRule getState() {
        return state;
    }

    public void setState(CommonRule state) {
        this.state = state;
    }

    public CommonRule getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(CommonRule updateTime) {
        this.updateTime = updateTime;
    }
}
